//
//  MacroDefinition.h
//  FinancialConsultant
//
//  Created by wangli on 12-11-2.
//  Copyright (c) 2012年 liyun. All rights reserved.
//


#define MODEL5               [[UIScreen mainScreen] bounds].size.height != 480.0f
#define VERSION7             [[[UIDevice currentDevice]systemVersion]floatValue] >= 7.0
#define INDICATOR_VIEW_FRAME [[UIScreen mainScreen] bounds]

#define LOAD_BACK_COLOR      [UIColor colorWithRed:44/255.0 green:44/255.0 blue:44/255.0 alpha:0.5f]

//市政府内网地址:http://10.32.0.146
//移动3g专线地址:http://10.101.1.10
//@"http://makingzeng.gicp.net"
#define base_url            @"http://10.101.1.10"

//背景颜色：#ececec；
//公告栏列表页分割线颜色:#9f9f9f;
//公告栏列表页字体颜色：#2c2c2c；

//公告栏内容页分割线颜色：#3a76ce；
//公告栏内容页文章字体和标题颜色：#2c2c2c；
//公告栏内容页信息字体颜色：#616161；

#define NOTICEBOARD_BACKCOLOR       [UIColor colorWithRed:236/255.0 green:236/255.0 blue:236/255.0 alpha:1.0f]
#define NOTICEBOARD_LINE_COLOR      [UIColor colorWithRed:159/255.0 green:159/255.0 blue:159/255.0 alpha:1.0f]
#define NOTICEBOARD_WORD_COLOR      [UIColor colorWithRed:44/255.0 green:44/255.0 blue:44/255.0 alpha:1.0f]

#define NOTICE_CONTENT_BACKCOLOR    [UIColor colorWithRed:58/255.0 green:118/255.0 blue:206/255.0 alpha:1.0f]
#define NOTICE_CONTENT_WORD_COLOR   [UIColor colorWithRed:44/255.0 green:44/255.0 blue:44/255.0 alpha:1.0f]
#define NOTICE_CONTENT_INFO_COLOR   [UIColor colorWithRed:97/255.0 green:97/255.0 blue:97/255.0 alpha:1.0f]

#define USER_NAME                   [[NSUserDefaults standardUserDefaults] objectForKey:@"USER_NAME"]
//#define USER_PASSWORD               [[NSUserDefaults standardUserDefaults] objectForKey:@"USER_PASSWORD"]
#define USER_PASSWORD2              [[NSUserDefaults standardUserDefaults] objectForKey:@"USER_PASSWORD2"]
#define USER_OWNER_GUDID            [[NSUserDefaults standardUserDefaults] objectForKey:@"USER_OWNER_GUDID"]
#define USER_NICK_NAME              [[NSUserDefaults standardUserDefaults] objectForKey:@"USER_NICK_NAME"]
#define USERID                      [[NSUserDefaults standardUserDefaults] objectForKey:@"USERID"]
#define USERNAME                     @"admin"
#define PASSWORD                     @"123"

#define TEMP_USERNAME               [[NSUserDefaults standardUserDefaults] objectForKey:@"temp"]

#define HEIGHT_FONT(A)              [UIFont fontWithName:@"Helvetica-Bold" size:A]
#define NORMAL_FONT(A)              [UIFont fontWithName:@"Arial" size:A]

#define DELAY_TIME                  2

